@section('content')
<!-- We don't need full layout here, because this page will be parsed with Ajax-->
<!-- Top Navbar-->
<div class="navbar theme-white">
  <div class="navbar-inner">
    <div class="left"><a href="#" class="back link"> <i class="icon icon-back"></i><span></span></a></div>
    <div class="center sliding field-name"></div>
    <div class="right"></div>
  </div>
</div>
<div class="pages">
  <!-- Page, data-page contains page name-->
  <div data-page="field" class="page">
    <!-- Scrollable page content-->
    <div class="page-content">
      <div class="content-block-title field-name"></div>
      <div class="list-block">
        <ul>
          <form action="{{ Input::server('REQUEST_URI') }}" method="post">
          <input type="hidden" name="{{ $name }}" id="upavator_obj" value="{{ $value }}">
          <div id="upavator_hids">
            
          </div>
          <li>
            <div class="item-content">              
              <div class="item-inner"> 
                <div class="item-title label field-name"></div>
                <div class="item-input">
                  @if ($value )
                   <img src="{{ asset( $value ) }}" width="64" height="64" id="upavator_perview">
                  @else
                    <img src="{{ asset('img/1.png') }}" width="64" height="64" id="upavator_perview">
                  @endif
                </div>                  
              </div>              
            </div>
            <div class="item-content">
              <div class="item-inner">
              <div class="item-title label">选择图片</div>
                <div class="item-input">
                    <input type="file" name="upavator" accept="image/*" id="captureFile" capture="camera">
                </div>
              </div>
            </div>
          </li>
          <div class="content-block">
            <div class="row">
              <div class="col-50"><a href="#" class="back button button-big button-fill color-red">取消</a></div>
              <div class="col-50">
                <input type="submit" value="保存" class="button button-big button-fill color-green"/>
              </div>
            </div>
          </div>
          </form>
        </ul>
      </div>
    </div>
  </div>
</div>
@stop